package com.puman.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.core.BaseServiceImpl;
import com.puman.bean.Contract;
import com.puman.dao.ContractDao;
import com.puman.service.ContractService;

@Service("contractService")
@Transactional
public class ContractServiceImpl extends BaseServiceImpl<Contract, ContractDao>
		implements ContractService {

	@Resource
	private ContractDao contractDao;

	@Override
	public List<Contract> getList(Integer supplier_id) {
		return contractDao.getList(supplier_id);
	}

	@Override
	public List<Contract> getListLike(Integer supplier_id, String name) {
		return contractDao.getListLike(supplier_id,name);
	}

}
